<?php
/**
 * Controller is the customized base controller class.
 * All controller classes for this application should extend from this base class.
 */
class PanelController extends Controller
{   
        protected $role = '';

	public $layout='//layouts/panel';

	public $menu=array();

        public $breadcrumbs=array();
        public $headerDescription = '';
        
        public function beforeAction($pagename) {
            if(Yii::app()->user->isGuest){
                Yii::app()->request->redirect(Yii::app()->createUrl('login/index'));
            }
            
            return true;
        }

}